import fetch from '@/axios/axiosAjax'

/*
 * 人员管理
 */
export const personList = data => fetch.fetchAsync('getPersonPage', data, 'POST')
export const personDetails = data => fetch.fetchAsync('getPersonDetails', data, 'POST')
export const verifyTel = data => fetch.fetchAsync('verifyTel', data, 'POST')
export const verifyTelByQr = data => fetch.fetchAsync('VerifyTelByQr', data, 'POST')
export const personRegister = data => fetch.fetchAsync('SaveUserInfo', data, 'POST')
export const companyList = data => fetch.fetchAsync('GetUserDept', data, 'POST')
export const companyList2 = data => fetch.fetchAsync('GetQrDeptByDeptId', data, 'POST')
export const categoryList = data => fetch.fetchAsync('GetUserCategory', data, 'POST')
export const paperList = data => fetch.fetchAsync('GetPapers', data, 'POST')
export const paperDetail = data => fetch.fetchAsync('GetPaperDetail', data, 'POST')
export const trainList = data => fetch.fetchAsync('GetPapers', data, 'POST')
export const trainDetail = data => fetch.fetchAsync('GetPaperDetail', data, 'POST')
export const breakList = data => fetch.fetchAsync('GetIllegals', data, 'POST')
export const breakDetail = data => fetch.fetchAsync('FetchBrokenRule', data, 'POST')
export const healthList = data => fetch.fetchAsync('GetPersonHealth', data, 'POST')
export const healthDetail = data => fetch.fetchAsync('GetHealthDetail', data, 'POST')
export const qrcodeValid = data => fetch.fetchAsync('QRcodeInvalid', data, 'POST')
export const qrcodeInfo = data => fetch.fetchAsync('SelectQRcode', data, 'POST')
export const qrcodeSave = data => fetch.fetchAsync('SaveQRcode', data, 'POST')

/*
 * 违章管理
 */
export const companyList3 = data => fetch.fetchAsync('GetDeparts', data, 'POST')
export const breakList2 = data => fetch.fetchAsync('FetchBrokenRules', data, 'POST')
export const breakInfo = data => fetch.fetchAsync('FetchBrokenRule', data, 'POST')
export const breakType = data => fetch.fetchAsync('FetchBrokenRuleType', data, 'POST')
export const breakArea = data => fetch.fetchAsync('GetAreas', data, 'POST')
export const breakAdd = data => fetch.fetchAsync('ReportBrokenRule', data, 'POST')
export const breakStatis = data => fetch.fetchAsync('FetchBrokenRuleSummary', data, 'POST')
/*
*事故上报
*/
export const Casualties = data => fetch.fetchAsync('GetAccidentReportList', data, 'POST')
export const CasualtiesReport = data => fetch.fetchAsync('GetAccidentStatistics', data, 'POST')

/*
*法律法规
*/
export const GetStatutesFG = data => fetch.fetchAsync('GetStatutes', data, 'POST')
export const GetOperateProceduresList = data => fetch.fetchAsync('GetOperateProceduresList', data, 'POST')
